@import '~antd/lib/style/themes/default.less';
@import 'header.theme.less';

@clsName: change-fontsize;

/* 选择导航模式公共样式 */
.getBaseMenuStyle() {
  height: 100%;
  width: 48px;
  float: left;
  background-color: #f0f2f5;
  border-radius: 4px;
  box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  overflow: hidden;
  margin-right: 24px;
  display: flex;
}

.global-header {
  width: 100%;
}

.switch-pos-layout {
  width: 100%;
  height: 100%;

  .switch-pos-menu {
    height: 100%;
  }

  .switch-pos-content {
    height: 100%;

    .target-box {
      height: 100%;
      padding: 12px;
      width: 100%;
      display: flex;
      flex-direction: column;

      .target-box-title {
        margin-bottom: 12px;
      }

      .target-box-des {
        flex: auto;
        margin-top: 12px;
        display: flex;
        flex-direction: column;
      }
    }
  }
}

.header-dropDown-layout {
  height: 100%;
  padding: 0px 16px;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;

  .avatar-size {
    width: @avatar-size-sm;
    height: @avatar-size-sm;
    margin-right: 8px;
  }
}

/* 切换主题样式 */
.header-theme {
  height: 100%;
  padding: 24px;

  p {
    margin-bottom: 5px;
  }

  .header-theme-colorItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .header-theme-block {
      height: 40px;
      width: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      float: left;
      border-radius: 3px;
      cursor: pointer;
    }
  }

  .base-menu-view {
    width: 100%;
    height: 40px;
    margin-bottom: 16px;

    .base-menu-nav {
      .getBaseMenuStyle();

      .base-nav-left {
        flex: 3;
        height: 100%;
        z-index: 1;
        background-color: #001529;
      }

      .base-nav-top {
        flex: 7;
        height: 25%;
        z-index: 1;
        background-color: #ffffff;
      }
    }

    .base-menu-top {
      .getBaseMenuStyle();

      .base-top-top {
        flex: auto;
        height: 25%;
        z-index: 1;
        background-color: #001529;
      }
    }
  }
}

.@{clsName}-fontSizeLayout {
  width: 100%;
  margin-bottom: 16px;

  dl {
    border: 1px solid #dbdbdb;
    padding: 15px 10px;
    margin-bottom: 0px;
    text-align: center;
    position: relative;
    border-radius: 3px;

    dt {
      font-weight: 600;
    }

    dd {
      margin-bottom: 0px;
    }

    .anticon {
      font-size: 50px;
      position: absolute;
      right: -1px;
      bottom: -1px;
    }
  }

  dl:hover {
    cursor: pointer;
  }
}
